package com.ruoyi.archive.controller;

import com.ruoyi.archive.domain.SFormIdentity;
import com.ruoyi.archive.service.ISFormIdentityService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @program: ruoyi
 * @description: 军人对应表单
 * @author: yuxiang
 * @create: 2021-10-09 11:03
 */
@RestController
@RequestMapping("/formIdentity")
public class SFormIdentityController {

    @Autowired
    private ISFormIdentityService formIdentityService;

    @GetMapping("/getFormList")
    public AjaxResult getFormList() {
        Map<String, List<SFormIdentity>> formList = formIdentityService.getFormList();
        return AjaxResult.success(formList);
    }
}
